package com.harmontronics.hanma.paas.paas.domain.iam.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 用户组成员个人（部门）
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-07 10:35:20
 */
@Data
public class HmUserGroupMember {

	private Long userGroupId;
	private Long unionId;
	private Integer isOrg;


	@Override
	public boolean equals(Object obj) {
		if (obj instanceof HmUserGroupMember) {
			HmUserGroupMember member = (HmUserGroupMember) obj;
			return this.unionId.longValue() == member.getUnionId().longValue()
					&& this.userGroupId.longValue() == member.getUserGroupId().longValue();
		}
		return super.equals(obj);

	}

}
